﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Data.Linq;
using MvcEngine.Core.Base;
using MvcEngine.Core.Pagination;

namespace MvcEngine.Core.Repositories
{
    public interface IBaseRepository<TModel>
        where TModel : class, IUnique
    {
        TModel Get(Guid id);
        IPagination<TModel> GetAll(int pageIndex, int count);
        void Delete(Guid id);
        void DeleteAll();
    }
}
